/**
 * WechatContextListener.java created by zhangzhidong 
 * at 下午10:09:35 2016年4月14日
 */
package listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import cn.edu.bjtu.labsys.constant.Constant;
import cn.edu.bjtu.labsys.settings.ApplicationConfiguration;

/**
 * 用于加载自定义的properties文件
 * @author zhangzhidong
 *
 */
public class AppContextListener implements ServletContextListener {
	public void contextInitialized(ServletContextEvent event) {
		// TODO Auto-generated method stub
		event.getServletContext().setAttribute(Constant.APPLICATION_CONFIGURATION_KEY, ApplicationConfiguration.getInstance());

	}
	/**
	 * @Param
	 * @Author zhangzhidong
	 */
	public void contextDestroyed(ServletContextEvent arg0) {
		// TODO Auto-generated method stub
	}

}
